<table>
  <tr>
    <th>Article Id</th>
    <th>OrderNr</th>
    <th>Quantity</th>
    <th>Total price</th>
  </tr>

<% @order_items.each do |order_item| %>
  <tr>
    <td><%=h order_item.article_id %></td>
    <td><%=h order_item.order_id %></td>
    <td><%=h order_item.quantity %></td>
    <td><%=h order_item.total_price %></td>
    <td class="admin"><%= link_to 'Show', order_item %></td>
    <td class="admin"><%= link_to 'Destroy', order_item, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>